// 封装搜索模块的接口
/** 获取热门搜索
 * @returns promis
 */
import request from '@/utils/request.js'
export const getHotSearch = () => {
  return request({
    url: '/search/hot'
  })
}
/**
 *
 * @param {*} params {limit,offset}
 * @returns promise
 */
export const getSearchRes = params => {
  return request({
    url: '/cloudsearch',
    params
  })
}
